package demo6;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        CardDemo cardDemo=new CardDemo();

        //1.买牌
        List<Card> cardList=cardDemo.buyCard();
        System.out.println(cardList);
        //2.洗牌
        cardDemo.shuffle(cardList);
        System.out.println(cardList);
        //3.发牌

        List<List<Card>> hand=cardDemo.play(cardList);
        for (int i = 0; i < hand.size(); i++) {
            System.out.println("第"+(i+1)+"个人："+hand.get(i));
        }

    }


}
